package com.itheima.employee;
import com.itheima.common.utils.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @author qiankaofei
 * @version 1.0
 * @date 2020/11/15 16:42
 */
@SpringBootApplication(scanBasePackages = "com.itheima.employee")
@MapperScan("com.itheima.employee.mapper")
@EnableEurekaClient
public class EmployeeApplication {
    public static void main(String[] args) {
        SpringApplication.run(EmployeeApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
